import request from '@/utils/request'


//获取客户组织
export function getOrganization() {
  return request({
    url: '/erp/common/organization',
    method: 'get',
  })
}
//获取客户部门
export function getDept() {
  return request({
    url: '/erp/common/dept',
    method: 'get',
  })
}

//获取客户类别
export function getCustomerLastTypeList() {
  return request({
    url: '/erp/common/customerLastType',
    method: 'get'
  })
}

//获取客户类别
export function getCustomerTypeList() {
  return request({
    url: '/erp/common/customerType',
    method: 'get'
  })
}

//获取客户小分类
export function getCustomerTypeChildrenList(data) {
  return request({
    url: '/erp/common/customerChildrenType/' + data,
    method: 'get'
  })
}

//获取业务员
export function getBizList(deptCode) {
  return request({
    url: '/erp/common/biz/' + deptCode,
    method: 'get'
  })
}

//获取物料分类
export function getCategoryList() {
  return request({
    url: '/erp/common/category',
    method: 'get'
  })
}

//获取物料
export function getSpecList(data) {
  return request({
    url: '/erp/common/spec/' + data,
    method: 'get'
  })
}

//物流
export function getWuliuList() {
  return request({
    url: '/erp/common/wuliu',
    method: 'get'
  })
}

//收款条件
export function getShoukuanList() {
  return request({
    url: '/erp/common/shoukuan',
    method: 'get'
  })
}

//客户所属公司
export function getCompanyList() {
  return request({
    url: '/erp/common/company',
    method: 'get'
  })
}
